package net.godcode.olivenotes.entities;

import java.io.Serializable;
import java.util.List;

/**
 * GenericDAO - based largely on concepts presented at
 * http://www.hibernate.org/328.html.
 * 
 * @author Chris Lewis Dec 26, 2007 <chris@thegodcode.net>
 * @version $Id: GenericDAO.java 22 2008-01-19 09:17:14Z burningodzilla $
 * @param <T>
 * @param <ID>
 */
public interface GenericDAO<T, ID extends Serializable> {
	
	T findById(ID id);
	
	List<T> findAll();
	
	T save(T entity);
	
}